/*
**提供主页加载数据模拟
**制作人：steven
**制作日期：2019.11.11
*/
const menus = [
  {
    code: 'A01',
    label: '我的业务',
    route: '',
    icon: 'el-icon-location',
    children: [
      {
        code: 'A0101',
        label: '入库',
        route: 'busenessWi',
        icon: ''
      },
      {
        code: 'A0102',
        label: '出库',
        route: 'busenessWo',
        icon: ''
      }
    ]
  },
  {
    code: 'A02',
    label: '查询统计',
    route: '',
    icon: 'el-icon-setting',
    children: [
      {
        code: 'A0201',
        label: '库存明细',
        route: 'queryStock',
        path: 'query/stock.vue',
        icon: ''
      },
      {
        code: 'A0202',
        label: '记账单',
        route: 'queryBill',
        icon: ''
      }
    ]
  },
  {
    code: 'A03',
    label: 'Programmer',
    route: '',
    icon: 'el-icon-monitor',
    children: [
      {
        code: 'A0301',
        label: '数据视图',
        route: 'programmerDataView',
        path: 'frame/data_view/index.vue',
        icon: 'el-icon-document-copy'
      },
      {
        code: 'A0302',
        label: '菜单',
        route: 'programmerMenu',
        path: 'frame/menu/index.vue',
        icon: ''
      }
    ]
  }
]
export default [
  {
    url: '/program/menu/getList',
    type: 'get',
    response: () => {
      return {
        code: 0,
        message: '获取菜单成功!',
        data: JSON.stringify(menus)
      }
    }
  }
]
